package cn.zhaoyuening.zshop4j.search.dao;

import cn.zhaoyuening.zshop4j.common.bean.SearchResult;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;


/**
 * Created by 赵岳宁 on 2017/5/1.
 */
public interface SearchDao {
   /**
    * 到索引库搜索
    * @param query 搜索条件
    * @return 搜索结果
    */
   SearchResult search(SolrQuery query) throws SolrServerException;

}
